package com.translate.web.service.upload;

import java.io.InputStream;
import java.util.Map;
import java.util.function.Function;

import com.returns.value.ICodeAndData;



public interface IUploadService {
	
	<V> ICodeAndData<String> uploadFileToOSS(InputStream inputStreamSource, String fileName, Function<V, String> function, long totalSize);
	
	public <T> ICodeAndData<T> stsUpload(byte[] fileHeader, String fileType);
	
	default public <V> ICodeAndData<Map<String, Object>> signURL(String fileName,
			/* String type, */ Function<V, String> path) {
		return null;
	}

}
